﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xn;
using System.Windows;

namespace ActionRecognition
{
    public class User
    {
        public uint id;
        public bool isCalibrated = false;

        public List<SkeletonInfo> listSkel = new List<SkeletonInfo>();

        public User(uint _id)
        {
            id = _id;

            //UPPER PART
            listSkel.Add(new SkeletonInfo(SkeletonJoint.Head));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.Neck));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.Torso));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightShoulder));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightElbow));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightHand));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftShoulder));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftElbow));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftHand));
            //LOWER PART
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightHip));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightKnee));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.RightFoot));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftHip));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftKnee));
            listSkel.Add(new SkeletonInfo(SkeletonJoint.LeftFoot));
        }
    }

    public class SkeletonInfo
    {
        public SkeletonJoint jointName;
        public SkeletonJointTransformation transformation;
        public Point p;

        public SkeletonInfo(SkeletonJoint _jointName)
        {
            jointName = _jointName;
        }
    };
}
